class_name EquipButton
extends ColorRect

@onready var button: Button = $BuyButton
@onready var texture_rect: TextureRect = $TextureRect
@onready var label: Label = $Label

var item_id:String
var new_id:String

func _ready() -> void:
	button.pressed.connect(_equip_pressed)
	label.text = item_id
	


func _equip_pressed():
	GameEvents.equip_select.emit(item_id,new_id)
	
